widget: Move opactiy == 0 check
authorBenjamin Otte <otte@redhat.com>
Wed, 27 Jun 2018 18:52:23 +0000 (20:52 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 27 Jun 2018 19:50:07 +0000 (21:50 +0200)
commitf3c670ab0cecb30f064163391a645d964f76ccbf
treeb97c5397ead353f62a126c4fcfd294e66b215817
parent8aa4b5150ea61c64a4fa90b643de863572466b6f
widget: Move opactiy == 0 check

If we check it too early, we will not unset priv->draw_neeeded, which
will then cause queue_draw() calls to not have an effect later. And that
causes changes in opacity to not register.

Closes #1180
gtk/gtkwidget.c